<template>
  <div>
    <h1>home</h1>
    <button @click="fun1">模拟获取数据</button>
    <el-calendar v-model="value">
    </el-calendar>
  </div>
</template>

<script>
  import {get,post} from "../../common/request";

  export default {
    name: "Home",
    data() {
      return {
        value:new Date()
      }
    },
    methods:{
      fun1(){
        let token = this.$store.getters.getToken;
        get("/demo")
      }
    },
    mounted() {
      var token =  this.$store.getters.getToken;
      console.log(token)
    }
  }
</script>

<style scoped>

</style>
